export function ajaxplugin(self,url,params,successback) {
    //self.$store.dispatch('showLoading') 
    self.$http.post(HOST + url, params).then((res) => {
        //self.$store.dispatch('hideLoading')
        res = res.data
        let result = res.result
        if (result == 'success') {
            successback(res)
        } else {
            self.$vux.alert.show({
                title: '提示',
                content: res.message
            })
        }
    },(err) => {
        vue.$vux.alert.show({
            title: '提示',
            content: "请求失败"
        })
            console.log(err)
    })

}

import axios from 'axios'
export function axiosNet(url,params,successback) {
    axios.post(HOST + url, params).then((res) => {
        res = res.data
        let result = res.result
        if (result == 'success') {
            successback(res)
        } else {
            console.log(res.message)
        }

    })
}
